.page-content {
  padding-bottom: 100px;
}

/* 顶部导航栏 */
.buy-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96rpx;
  background: #fff;
  padding: 0 24rpx;
  border-bottom: 1px solid #f5f5f5;
}
.buy-navbar-back {
  font-size: 40rpx;
  color: #888;
  width: 60rpx;
}
.buy-navbar-title {
  font-size: 36rpx;
  color: #222;
  font-weight: bold;
}
.buy-navbar-icons {
  display: flex;
  align-items: center;
}
.buy-navbar-dot {
  width: 16rpx;
  height: 16rpx;
  background: #ff2d2d;
  border-radius: 50%;
  margin-right: 18rpx;
}
.buy-navbar-more {
  font-size: 36rpx;
  color: #888;
  margin-right: 18rpx;
}
.buy-navbar-round {
  width: 32rpx;
  height: 32rpx;
  border-radius: 50%;
  border: 2rpx solid #222;
}

/* Banner轮播 */
.buy-banner {
  position: relative;
  width: 100vw;
  height: 240rpx;
  background: #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.buy-banner-swiper {
  width: 94vw;
  height: 220rpx;
  border-radius: 18rpx;
  overflow: hidden;
  margin: 0 auto;
  background: #eee;
}
.buy-banner-img {
  width: 100%;
  height: 220rpx;
  border-radius: 18rpx;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
.buy-banner-dots {
  width: 100%;
  text-align: center;
  position: static;
  margin-top: 8rpx;
  display: flex;
  justify-content: center;
  align-items: center;
}
.buy-banner-dot {
  width: 12rpx;
  height: 12rpx;
  border-radius: 50%;
  background: #fff;
  opacity: 0.5;
  margin: 0 6rpx;
}
.buy-banner-dot.active {
  background: #fff;
  opacity: 1;
  border: 2rpx solid #ff2d2d;
}

/* 2x2宫格卡片 */
.buy-grid {
  margin: 24rpx 0 0 0;
  padding: 0 18rpx;
}
.buy-grid-row {
  display: flex;
  flex-direction: row;
  margin-bottom: 18rpx;
}
.buy-grid-card {
  flex: 1;
  border-radius: 18rpx;
  margin-right: 18rpx;
  padding: 28rpx 0 18rpx 24rpx;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 110rpx;
  background: #f7f7f7;
  box-sizing: border-box;
}
.buy-grid-card:last-child {
  margin-right: 0;
}
.buy-grid-title {
  font-size: 26rpx;
  color: #222;
  font-weight: 500;
  margin-bottom: 18rpx;
}
.buy-grid-btn {
  display: inline-block;
  border: 1rpx solid #bbb;
  color: #888;
  font-size: 22rpx;
  border-radius: 24rpx;
  padding: 4rpx 24rpx;
  background: #fff;
}
.buy-grid-card-img {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.buy-grid-img {
  width: 90%;
  height: 90rpx;
  border-radius: 14rpx;
  object-fit: cover;
}

/* 横向tab筛选 */
.buy-tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  background: #fff;
  padding: 18rpx 0 0 0;
  margin-bottom: 8rpx;
  overflow-x: hidden;
  width: 100%;
  gap: 0;
}
.buy-tab {
  flex: 1 1 0;
  max-width: 25%;
  text-align: center;
  font-size: 28rpx;
  color: #888;
  background: #fff;
  border: 1rpx solid #eee;
  border-radius: 24rpx;
  padding: 14rpx 0;
  margin: 0 8rpx;
  white-space: nowrap;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.buy-tab:first-child {
  margin-left: 18rpx;
}
.buy-tab:last-child {
  margin-right: 18rpx;
}
.buy-tab.active {
  color: #ff2d2d;
  border: 1rpx solid #ff2d2d;
  background: #fff0f0;
  font-weight: bold;
}

/* 商品列表卡片 */
.buy-product-list {
  padding: 0 18rpx 24rpx 18rpx;
}
.buy-product-card {
  display: flex;
  flex-direction: row;
  background: #fff;
  border-radius: 18rpx;
  box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.04);
  margin-bottom: 22rpx;
  padding: 18rpx 18rpx 18rpx 0;
  align-items: flex-start;
}
.buy-product-img {
  width: 140rpx;
  height: 140rpx;
  border-radius: 14rpx;
  object-fit: cover;
  margin-right: 18rpx;
}
.buy-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.buy-product-title {
  font-size: 28rpx;
  color: #222;
  font-weight: 500;
  margin-bottom: 10rpx;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.buy-product-tag {
  font-size: 20rpx;
  color: #ff2d2d;
  background: #fff0f0;
  border-radius: 8rpx;
  padding: 2rpx 14rpx;
  display: inline-block;
  margin-bottom: 10rpx;
}
.buy-product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.buy-product-price {
  color: #ff2d2d;
  font-size: 28rpx;
  font-weight: bold;
}
.buy-product-oldprice {
  color: #bbb;
  font-size: 22rpx;
  text-decoration: line-through;
  margin-left: 8rpx;
}
.buy-product-btn {
  background: #ff2d2d;
  color: #fff;
  font-size: 24rpx;
  border-radius: 24rpx;
  padding: 10rpx 32rpx;
  font-weight: 500;
  margin-left: 18rpx;
}

.buy-container {
  background: #f7f7f7;
  min-height: 100vh;
}
